package com.klikmee.sms.core.web;

import com.dotexe.webframework.core.Session;
import com.klikmee.sms.core.model.Client;

public class SmsCoreSession extends Session {

	public enum SessionParameters {
		USER("SMS_CORE_SESSION_USER");
		
		private String	value;

		private SessionParameters(String value){
			this.value = value;
		}
	}
	
	public static void setUser(Client client){
		session.setAttribute( SessionParameters.USER.toString(), client );
	}
	
	public static Client getUser() {
		return (Client) session.getAttribute( SessionParameters.USER.toString() );
	}
}
